using System;
using System.Collections;
using System.Xml.Serialization;

namespace VPLink2013.Webparts
{
	/// <summary>
	/// Summary description for daSPFieldList.
	/// </summary>
	[XmlRootAttribute("FieldList", IsNullable = false)]
	public class daSPFieldList : daBase
	{
		[XmlAttributeAttribute]
		public string LinkField = "Title";
		[XmlAttributeAttribute]
		public string ViewName;

		[XmlAttributeAttribute]
		public int PageSize = 10;
		[XmlAttributeAttribute]
        public string Sort = "Title";
		[XmlAttributeAttribute]
		public string SortMode = "ASC";
		[XmlAttributeAttribute]
		public string FilterField = "";
		[XmlAttributeAttribute]
		public string FilterValue = "";


		public daSPFieldList()
		{
	
		}
		[XmlArrayAttribute("Fields")]
		[XmlArrayItemAttribute(ElementName = "Field", 
			 IsNullable = true,
			 Type = typeof(taSPField))]
		public ArrayList ElementList
		{
			get	
			{
				return mElementList;
			}
			set 
			{
				mElementList = value;
			}
		}		 
	}
}
